<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="showwindowDetail">	
	<table class="orderTable">
		<tr>
			<td><img src="<%=request.getContextPath()%>/upload/${images[0]}"></td>
			<td>
				<table class="orderPanel">
					<tr>
						<td colspan="2">${command.content}</td>
					</tr>
					<tr>
						<td>판매가격 : </td>
						<td style="font-weight:bold"><fmt:formatNumber value="${command.price}" type="currency"/></td>
					</tr>
					<tr>
						<td>적립포인트 : </td>
						<td><fmt:formatNumber value="${command.point}" type="currency" currencySymbol=""/> p</td>
					</tr>
					<tr>
						<td>주문수량 : </td>
						<td><input type="number" value="1" width="50"></td>
					</tr>
					<tr>
						<td colspan="3">옵션 : <select >
							<c:if test="${options.size()!=0}">		
								<c:forEach var="i" items="${options}">
									<option>${i.color}:${i.sizes}</option>
								</c:forEach>
							</c:if>
							<c:if test="${options.size()==0}">
								<option>준비중입니다</option>
							</c:if>
						</select>
						</td>
					</tr>
					<tr>						
						<td colspan="2">
							<input type="button" value="바로구매">						
							<input type="button" value="장바구니">
						</td>						
					</tr>
				</table>
			</td>		
		</tr>		
	</table>
	
			
	<table class="imageTable">
		<tr><th><span>Product Info.</span><hr></th></tr>
		<c:forEach var="i" items="${images}" begin="1">
		<tr>
			<td class="detailImg"><img src="<%=request.getContextPath()%>/upload/${i}"></td>
		</tr>
		</c:forEach>
		<tr>
			<td><img src="<%=request.getContextPath() %>/img/model_info.jpg"></td>
		</tr>
		<tr>
			<td><img src="<%=request.getContextPath() %>/img/sub-pp-gongtong.jpg"></td>
		</tr>
	</table>	
</div>